package com.nuanshui.heatedloan.credit.facade;

import com.nuanshui.heatedloan.constant.DubboCacheRegion;
import com.nuanshui.heatedloan.credit.model.LightLoanProductInfo;
import com.nuanshui.heatedloan.credit.model.ProductInfo;
import com.nuanshui.heatedloan.credit.model.SingleLoanProductInfo;
import com.nuanshui.heatedloan.dubbo.extension.cache.Cacheable;

import java.util.List;

/**
 * Created by wangxw on 2017/7/12.
 */
public interface CustomerProduceService {

    /***
     * 根据类型获取分期产品信息
     * @param
     * @return
     */
    @Cacheable(value= DubboCacheRegion.CACHE_CONSTANT_SINGLELOANPRODUCT)
    SingleLoanProductInfo getSingleLoanProductInfo();

    /***
     * 根据类型获取闪电贷产品信息
     * @param
     * @return
     */
    @Cacheable(value=DubboCacheRegion.CACHE_CONSTANT_LIGHTLOANPRODUCT)
    LightLoanProductInfo getLightLoanProductInfo();

    /**
     * 获取所有贷款产品
     * @return
     */
    List<ProductInfo> getProductList();

}
